<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>RT-Thread RTOS: Hardware Related Package</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">RT-Thread RTOS
   &#160;<span id="projectnumber">1.2.0</span>
   </div>
   <div id="projectbrief">An open source embedded real-time operating system</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__bsp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Hardware Related Package</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaa56c3da0faca777694f042aa6557ca53"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___basic_def.html#gab7ede51a23ea8b78381b5a59506edd7d">rt_base_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#gaa56c3da0faca777694f042aa6557ca53">rt_hw_interrupt_disable</a> (void)</td></tr>
<tr class="separator:gaa56c3da0faca777694f042aa6557ca53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga566def229b448a1d209a14834501dc3a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#ga566def229b448a1d209a14834501dc3a">rt_hw_interrupt_enable</a> (<a class="el" href="group___basic_def.html#gab7ede51a23ea8b78381b5a59506edd7d">rt_base_t</a> level)</td></tr>
<tr class="separator:ga566def229b448a1d209a14834501dc3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab40031c8c6d5fe45893912dc50b04639"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#gab40031c8c6d5fe45893912dc50b04639">rt_hw_interrupt_init</a> (void)</td></tr>
<tr class="separator:gab40031c8c6d5fe45893912dc50b04639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9528763a2ebf52c2be6e9349704672fc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#ga9528763a2ebf52c2be6e9349704672fc">rt_hw_interrupt_mask</a> (int vector)</td></tr>
<tr class="separator:ga9528763a2ebf52c2be6e9349704672fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf08efe992a1717a83757e99295a1b33c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#gaf08efe992a1717a83757e99295a1b33c">rt_hw_interrupt_umask</a> (int vector)</td></tr>
<tr class="separator:gaf08efe992a1717a83757e99295a1b33c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae967a258c431792b35e4e72d1691d233"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#gae967a258c431792b35e4e72d1691d233">rt_hw_interrupt_install</a> (int vector, rt_isr_handler_t new_handler, rt_isr_handler_t *old_handler)</td></tr>
<tr class="separator:gae967a258c431792b35e4e72d1691d233"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabe7a3d803d027af563d6aa604e94d821"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#gabe7a3d803d027af563d6aa604e94d821">rt_hw_cpu_reset</a> (void)</td></tr>
<tr class="separator:gabe7a3d803d027af563d6aa604e94d821"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5575183b7ec3e1a5255ff373831a8ea6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__bsp.html#ga5575183b7ec3e1a5255ff373831a8ea6">rt_hw_cpu_shutdown</a> (void)</td></tr>
<tr class="separator:ga5575183b7ec3e1a5255ff373831a8ea6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Board Support Package(BSP) is the hardware related wrapper, for example, peripherals in board, the pinmux setting etc. In RT-Thread RTOS, the bsp is placed under bsp directory.</p>
<p>Chip Support Package (CSP) is a software set that contains chip specific software. A CSP usually includes operating system porting and peripheral device drivers inside chip. In RT-Thread RTOS, the csp is placed under libcpu directory. </p>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gaa56c3da0faca777694f042aa6557ca53"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___basic_def.html#gab7ede51a23ea8b78381b5a59506edd7d">rt_base_t</a> rt_hw_interrupt_disable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function will return current system interrupt status and disable system interrupt.</p>
<dl class="section return"><dt>Returns</dt><dd>the current system interrupt status </dd></dl>

</div>
</div>
<a class="anchor" id="ga566def229b448a1d209a14834501dc3a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rt_hw_interrupt_enable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___basic_def.html#gab7ede51a23ea8b78381b5a59506edd7d">rt_base_t</a>&#160;</td>
          <td class="paramname"><em>level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function will set the specified interrupt status, which shall saved by rt_hw_intterrupt_disable function. If the saved interrupt status is interrupt opened, this function will open system interrupt status. </p>

</div>
</div>
<a class="anchor" id="gab40031c8c6d5fe45893912dc50b04639"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rt_hw_interrupt_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function initializes interrupt. </p>

</div>
</div>
<a class="anchor" id="ga9528763a2ebf52c2be6e9349704672fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rt_hw_interrupt_mask </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vector</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function masks the specified interrupt.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">vector</td><td>the interrupt number to be masked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>not all of platform provide this function. </dd></dl>

</div>
</div>
<a class="anchor" id="gaf08efe992a1717a83757e99295a1b33c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rt_hw_interrupt_umask </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vector</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function umasks the specified interrupt.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">vector</td><td>the interrupt number to be unmasked.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>not all of platform provide this function. </dd></dl>

</div>
</div>
<a class="anchor" id="gae967a258c431792b35e4e72d1691d233"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rt_hw_interrupt_install </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>vector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">rt_isr_handler_t&#160;</td>
          <td class="paramname"><em>new_handler</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">rt_isr_handler_t *&#160;</td>
          <td class="paramname"><em>old_handler</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function will install specified interrupt handler.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">vector</td><td>the interrupt number to be installed. </td></tr>
    <tr><td class="paramname">new_handler</td><td>the new interrupt handler. </td></tr>
    <tr><td class="paramname">old_handler</td><td>the old interrupt handler. This parameter can be RT_NULL.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>not all of platform provide this function. </dd></dl>

</div>
</div>
<a class="anchor" id="gabe7a3d803d027af563d6aa604e94d821"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rt_hw_cpu_reset </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function will reset whole platform. </p>

</div>
</div>
<a class="anchor" id="ga5575183b7ec3e1a5255ff373831a8ea6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rt_hw_cpu_shutdown </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function will halt whole platform. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Mon Jan 6 2014 23:05:02 for RT-Thread RTOS by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li>
  </ul>
</div>
</body>
</html>
